﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace test_6_17
{
    class Cbox
    {
        private double length;
        private double width;
        private double height;


        public Cbox(double length, double width, double height)
        {
            this.length = length;
            this.width = width;
            this.height = height;
        }

        public string getV()
        {
            return (length*width*height).ToString();
        }

        public string getCbox() 
        { 
             return "长为："+length.ToString()+"、 宽为："+width.ToString()+"、高为："+height.ToString();
        }
    }
}
